#include "surface.h"
#include "render.h"
#include "image.h"

#define W 1600
#define H 1200

static void sample(surface_t *base, float fps)
{
    surface_clear(base, RGB(0xEAEBED), 0, 0, base->width, base->height);
    style_t style = {
        fill_color : RGB(0xEAEBED),
        stroke_color : RGB(0x000000),
        stroke_width : 10,
        border_radius : {1, 1, 1, 1},
        shadow : (shadow_t[]){
            {10, 10, 10, RGB(0xff0000)},
            {-10, -10, 10, RGB(0xff7f00)}},
        n_shadow : 2,
    };
    draw_rectangle(base, 571, 111, 461, 995, 50, style);
    draw_text(base, 632, 244, "Kettle", 4, RGB(0x000000));
    draw_text(base, 735, 370, "28 C", 70 / 16, RGB(0x000000));
    draw_text(base, 735, 439, "current temp", 1, RGB(0xBFC0C3));
    draw_text(base, 735, 494, "1.4L", 70 / 16, RGB(0x000000));
    draw_text(base, 735, 566, "water volume", 1, RGB(0xBFC0C3));
    draw_text(base, 696, 1018, "it takes 1 minute", 1.2, RGB(0xBFC0C3));
    draw_svg(base, "M260.266667 488.533333L736 10.666667c12.8-12.8 36.266667-12.8 49.066667 0 12.8 12.8 12.8 36.266667 0 49.066666L332.8 512l452.266667 452.266667c12.8 12.8 12.8 36.266667 0 49.066666-12.8 12.8-36.266667 12.8-49.066667 0L260.266667 535.466667c-6.4-6.4-10.666667-14.933333-10.666667-23.466667 0-8.533333 4.266667-17.066667 10.666667-23.466667z",
             1024, 1024, 35, 35, 628, 169, RGB(0x777777));
    draw_svg(base, "M554.666667 646.4 554.666667 384c0-23.466667-19.2-42.666667-42.666667-42.666667s-42.666667 19.2-42.666667 42.666667l0 262.4c-49.066667 17.066667-85.333333 64-85.333333 121.6 0 70.4 57.6 128 128 128s128-57.6 128-128C640 712.533333 603.733333 665.6 554.666667 646.4zM640 597.333333 640 170.666667c0-70.4-57.6-128-128-128s-128 57.6-128 128l0 426.666667c-51.2 38.4-85.333333 100.266667-85.333333 170.666667 0 117.333333 96 213.333333 213.333333 213.333333 117.333333 0 213.333333-96 213.333333-213.333333C725.333333 697.6 691.2 635.733333 640 597.333333zM512 938.666667c-93.866667 0-170.666667-76.8-170.666667-170.666667 0-64 34.133333-117.333333 85.333333-147.2L426.666667 170.666667c0-46.933333 38.4-85.333333 85.333333-85.333333s85.333333 38.4 85.333333 85.333333l0 450.133333c51.2 29.866667 85.333333 85.333333 85.333333 147.2C682.666667 861.866667 605.866667 938.666667 512 938.666667z",
             1024, 1024, 47, 47, 666, 375, RGB(0x777777));
    draw_svg(base, "M65.301 495.11s45.141-31.266 76.845-31.266c59.828 2.065 60.995 37.531 89.113 37.531 28.11 0 39.044-37.531 92.777-37.531s58.576 37.531 92.783 37.531c34.201 0 34.439-37.531 88.01-37.531 53.577 0 55.996 37.531 96.215 37.531 40.226 0 19.526-37.531 84.192-37.531 64.665 0 64.665 37.531 95.202 37.531 30.536 0 36.626-37.531 85.437-37.531s64.665 37.531 91.531 37.531a232.413 232.413 0 0 1 0 58.335c-24.447 11.47-65.916-34.398-85.441-34.398-19.526 0-53.727 36.199-92.777 36.199-39.052 0-68.336-44.799-91.532-44.799-23.196 0-29.286 44.799-91.526 44.799-62.247 0-50.92-36.199-91.376-36.199-40.452 0-29.44 36.199-86.765 36.199s-58.571-36.199-96.37-36.199c-37.799 0-31.788 36.199-79.346 36.199-47.56 0-65.917-36.199-101.293-36.199-35.38 0-50.061 36.199-75.676 36.199 1.248-17.466-0.003-66.401-0.003-66.401zM65.301 225.11s45.141-31.266 76.845-31.266c59.828 2.065 60.995 37.531 89.113 37.531 28.11 0 39.044-37.531 92.777-37.531s58.576 37.531 92.783 37.531c34.201 0 34.439-37.531 88.01-37.531 53.577 0 55.996 37.531 96.215 37.531 40.226 0 19.526-37.531 84.192-37.531 64.665 0 64.665 37.531 95.202 37.531 30.536 0 36.626-37.531 85.437-37.531s64.665 37.531 91.531 37.531a232.413 232.413 0 0 1 0 58.335c-24.447 11.47-65.916-34.398-85.441-34.398-19.526 0-53.727 36.199-92.777 36.199-39.052 0-68.336-44.8-91.532-44.8-23.196 0-29.286 44.8-91.526 44.8-62.247 0-50.92-36.199-91.376-36.199-40.452 0-29.44 36.199-86.765 36.199s-58.571-36.199-96.37-36.199c-37.799 0-31.788 36.199-79.346 36.199-47.56 0-65.917-36.199-101.293-36.199-35.38 0-50.061 36.199-75.676 36.199 1.248-17.466-0.003-66.401-0.003-66.401zM64.833 765.11s45.141-31.266 76.845-31.266c59.828 2.065 60.995 37.531 89.113 37.531 28.11 0 39.044-37.531 92.777-37.531s58.576 37.531 92.783 37.531c34.201 0 34.439-37.531 88.01-37.531 53.577 0 55.996 37.531 96.215 37.531 40.226 0 19.526-37.531 84.192-37.531 64.665 0 64.665 37.531 95.202 37.531 30.536 0 36.626-37.531 85.437-37.531s64.665 37.531 91.531 37.531a232.413 232.413 0 0 1 0 58.335c-24.447 11.47-65.916-34.398-85.441-34.398-19.526 0-53.727 36.199-92.777 36.199-39.052 0-68.336-44.799-91.532-44.799-23.196 0-29.286 44.799-91.526 44.799-62.247 0-50.92-36.199-91.376-36.199-40.452 0-29.44 36.199-86.765 36.199s-58.571-36.199-96.37-36.199-31.788 36.199-79.346 36.199c-47.56 0-65.917-36.199-101.293-36.199-35.38 0-50.061 36.199-75.676 36.199 1.248-17.466-0.003-66.401-0.003-66.401z",
             1024, 1024, 47, 47, 666, 506, RGB(0x777777));
    draw_svg(base, "M469.243751 161.043675l82.672825 0 0 413.485899-82.672825 0 0-413.485899Z",
             1024, 1024, 75, 75, 766, 766, RGB(0x777777));
    draw_svg(base, "M700.78599 260.311441l-57.843348 57.897584c66.076862 45.426563 115.680557 124.041983 115.680557 214.947299 0 136.460815-111.620082 248.074757-248.075781 248.074757-136.393277 0-248.075781-111.614965-248.075781-248.074757 0-90.905315 49.666117-169.520735 119.92318-210.823379l-62.02048-62.02048c-82.735247 62.02048-140.574502 161.225824-140.574502 272.844882 0 182.001989 148.869414 330.810004 330.747582 330.810004 181.94059 0 330.808981-148.806992 330.808981-330.810004C841.356399 421.537264 783.453699 322.331921 700.78599 260.311441",
             1024, 1024, 75, 75, 766, 766, RGB(0x777777));
}

#include "main.h"